import request from "@/utils/request";

// 获取配置列表数据
export function getRollingList(data) {
  return request({
    url: "/api/v1/rolling/list",
    method: "get",
    data: data
  });
}
// 通过id获取数据详情
export function getDetailById(data) {
  return request({
    url: "/api/v1/rolling/show",
    method: "get",
    data: data
  });
}
// 添加
export function rollingCreate(data) {
  return request({
    url: "/api/v1/rolling/create",
    method: "post",
    data: data
  });
}
// 更新保存
export function rollingUpdate(data) {
  return request({
    url: "/api/v1/rolling/update",
    method: "post",
    data: data
  });
}
//删除
export function rollingDelete(data) {
  return request({
    url: "/api/v1/rolling/delete",
    method: "get",
    data: data
  });
}
//应用
export function rollingApply(data) {
  return request({
    url: "/api/v1/rolling/apply",
    method: "get",
    data: data
  });
}
//应用
export function rollingDisapply(data) {
  return request({
    url: "/api/v1/rolling/disapply",
    method: "get",
    data: data
  });
}
